package com.gang.music.system.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.gang.music.system.entity.UserRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
  *  Mapper 接口
 * </p>
 *
 * @author gang
 * @since 2017-10-30
 */
public interface UserRoleMapper extends BaseMapper<UserRole> {

	void batchInsert(@Param("userId")Long userId, 
			@Param("roleIdList")List<Integer> roleIdList);

	void deleteByUserId(Long userId);

}